package com.yan.controller

import com.yan.service.HelloService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class ServerController {
    @Autowired
    private lateinit var helloService: HelloService

    @GetMapping("hi")
    fun hi(): String {
        return helloService.hello()
    }
}